import request from "@/utils/request";

/* 职位管理页面 */

// 新增企业职位
export function viewRecordLookAtMeApi(uid) {
  return request({
    url: `/apiH2/member/company/resume/viewRecord/lookAtMe/${uid}`,
    method: "GET",
  });
}

// 企业根据id操作职位
export function operationPositionByIdApi(id) {
  return request({
    url: `/apiH2/member/company/position/operationPositionById/${id}`,
    method: "PUT",
  });
}

// 企业职位列表查询
export function positionListApi() {
  return request({
    url: `/apiH2/member/company/position/positionList`,
    method: "GET",
  });
}

// 企业根据id刷新职位
export function refreshPositionByIdApi(id) {
  return request({
    url: `/apiH2/member/company/position/refreshPositionById/${id}`,
    method: "PUT",
  });
}

// 根据id修改企业职位
export function updatePositionByIdApi(id) {
  return request({
    url: `/apiH2/member/company/position/updatePositionById/${id}`,
    method: "PUT",
  });
}